{% extends 'PrincipalBundle:Default:baselogin.html.twig' %}
{% block title %}Formulario de acceso{% endblock %}
{% block contenido %}

<div class="grid_6 prefix_5 suffix_5">
    <h1>Iniciar Sesión</h1>
    <div id="login">
        {% if error %}
        <p class="error">{{ error.message }}</p> 
        {% endif %}

        <form id="form1" action="{{ path('usuario_login_check') }}" method="post">
            <p>
                <label><strong>Usuario:</strong>
                    <input type="text" name="_username" class="inputText" id="textfield" value="{{ last_username }}"/>
                </label>
            </p>
            <p>
                <label><strong>Contraseña:</strong>
                    <input type="password" name="_password" class="inputText" id="textfield2" />
                </label>
            </p>
             <input class="blue_button" type="submit" name="login" value="Acceder" />
        </form>
        <br clear="all" />
    </div>
</div>
{% endblock %}